<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="h" uri="/head" %>
<%
	String flag = request.getParameter("flag");
	String typeId = request.getParameter("typeId");
	String jobCategoryId = request.getParameter("jobCategoryId");
	String cityId = request.getParameter("cityId");
	String salaryId = request.getParameter("salaryId");
	
	request.setAttribute("flag",flag);
	request.setAttribute("typeId",typeId);
	request.setAttribute("jobCategoryId",jobCategoryId);
	request.setAttribute("cityId",cityId);
	request.setAttribute("salaryId",salaryId);
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<h:head title="免费发布信息"></h:head>
<link type="text/css" rel="stylesheet" href="/style/publish.css" />
<link type="text/css" rel="stylesheet" href="/style/head_foot.css" />
<link type="text/css" rel="stylesheet" href="/style/base.css" />
</head>
<body>
<!-- 头部 S -->
<jsp:include page="/page/include/header.jsp"></jsp:include>
<!-- 头部 E -->
<!-- 发布 S -->
<div class="pub_index">
	<p class="pub_tit">
    	<span class="${empty flag ? 'current':''}">
    		<c:if test="${empty typeId}">1.选择类型</c:if>
    		<c:if test="${not empty typeId}">1.<a href="/publish/">选择类型</a></c:if> 
    	</span>
    	<span class="${flag == 'typeId' ? 'current':''}">
    		<c:if test="${empty jobCategoryId}">2.选择分类</c:if>
    		<c:if test="${not empty jobCategoryId}">2.<a href="/publish/${typeId }.html">选择分类</a></c:if>
    	</span>
    	<span class="${flag == 'jobCategoryId' ? 'current':''}">
    		<c:if test="${empty cityId}">3.选择城市</c:if>
    		<c:if test="${not empty cityId}">3.<a href="/publish/${typeId },${jobCategoryId}.html">选择城市</a></c:if>
    	</span>
		<span class="${flag == 'cityId' ? 'current':''}">
			<c:if test="${empty salaryId}">4.求职年薪</c:if>
			<c:if test="${not empty salaryId}">4.<a href="/publish/${typeId },${jobCategoryId},${cityId }.html">求职年薪</a></c:if>
		</span>
		<span class="${flag == 'salaryId' ? 'current':''}">
			5.填写信息
		</span>     
    </p>
    <c:if test="${empty flag}">
    	<jsp:include page="/template/publish_type.jsp"></jsp:include>
    </c:if>
    <c:if test="${flag == 'typeId'}">
    	<c:choose>
    		<c:when test="${typeId == 3}">
    			<jsp:include page="/template/publish_jobCategory_full.jsp"></jsp:include>
    		</c:when>
    		<c:otherwise>
    			<jsp:include page="/template/publish_jobCategory.jsp"></jsp:include>
    		</c:otherwise>
    	</c:choose>
	</c:if>
	<c:if test="${flag == 'jobCategoryId'}">
 		<jsp:include page="/template/publish_city.jsp"></jsp:include>
	</c:if>
	<c:if test="${flag == 'cityId'}">
 		<jsp:include page="/template/publish_salary.jsp"></jsp:include>
	</c:if>
	<c:if test="${flag == 'salaryId'}">
		<c:if test="${typeId==1}">
 			<jsp:include page="/template/publish_personal_info.jsp"></jsp:include>
 		</c:if>
 		<c:if test="${typeId==2}">
 			<jsp:include page="/template/publish_personal_info.jsp"></jsp:include>
 		</c:if>
	</c:if>
</div>
<!-- 发布  E -->
<!-- 底部 S -->
<jsp:include page="/page/include/footer.jsp"></jsp:include>
<!-- 底部 E -->
</body>
</html>